package com.woniuxy.service.impl;

import com.woniuxy.dao.RbacManagerDao2;
import com.woniuxy.service.RbacManagerService;

import java.util.List;
import java.util.Map;

public class RbacManagerServiceImpl implements RbacManagerService {

    RbacManagerDao2 rbacManagerDao2;
    public RbacManagerServiceImpl(RbacManagerDao2 rbacManagerDao2) {
        this.rbacManagerDao2 = rbacManagerDao2;
    }

    @Override
    public Map<String, Object> findOne(int id) {
        return rbacManagerDao2.findOne(id);
    }

    @Override
    public List<Map<String, Object>> findAll() {
        return rbacManagerDao2.findAll();
    }

    @Override
    public Integer Save(Map<String, String> manager) {
        return rbacManagerDao2.save(manager);
    }
}
